import myfetch from "./myfetch"

export const getMyWork = () => {
  return myfetch.myget("/work/getMywork", {})
}

export const getMyDoWork = () => {
  return myfetch.myget("/work/getMyDowork", {})
}

export const getPaper = (id: string) => {
  let param = { id }
  return myfetch.myget("/work/getPaper", param)
}

export const setCanSee = (id: string, cansee: string) => {
  let param = { id, cansee }
  return myfetch.myget("/work/setCanSee", param)
}

export const delMyWork = (workid: string) => {
  let param = { workid }
  return myfetch.myget("/work/delMyWork", param)
}

export const addWork = (body: {}) => {
  return myfetch.mypost("/work/add", {}, body)
}

export const saveWork = (body: {}) => {
  return myfetch.mypost("/work/save", {}, body)
}

